package com.gxuwz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.gxuwz.dao.impl.BaseDaoImpl;
import com.gxuwz.dao.impl.DepartmentDaoImpl;
import com.gxuwz.entity.SysDepartment;
import com.gxuwz.service.IDepartmentService;

@Service("departmentService")
public class DepartmentServiceImpl extends BaseServiceImpl<SysDepartment> implements IDepartmentService{
    
    DepartmentDaoImpl departmentDao;

	@Override
    @Autowired(required = true)
    @Qualifier("departmentDao")
	public void setBaseDao(BaseDaoImpl<SysDepartment> baseDao) {
        this.baseDao = baseDao;
        this.departmentDao = (DepartmentDaoImpl) baseDao;	
	}
	
}
